package cn.rmc.basic.mapper;

import cn.rmc.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    //基础查询
    void save(T t);

    void remove(Long id);

    void update(T t);

    T loadById(Long id );

    List<T> loadAll();

    long queryCount(BaseQuery query);

    List<T> queryData(BaseQuery query);
    //批量删除
    void delRemove(List<Long> ids);
}
